package com.hl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author Liu Huan
 */
//将配置文件中的 person 对象，配置为 Person 对象的初始化属性
@ConfigurationProperties(prefix = "person")
@Component  //添加到spring组件
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
	private String firstName;
	private Integer age;
	private boolean happy;
	
	private Date birth;
	private Map<String, Object> map;
	private List<Object> list;
	private Dog dog;
}
